import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Suppliment/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Suppliment/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Suppliment/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Suppliment/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/Suppliment/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Suppliment/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Suppliment/detail',method: 'post',data: params})
}

//审核
export function audit(params) {
	return request({ url: '/app/Suppliment/audit',method: 'post',data: params})
}

//查看详情
export function unAudit(params) {
	return request({ url: '/app/Suppliment/unAudit',method: 'post',data: params})
}

//获取用料清单
export function bomList(params) {
	return request({ url: '/app/Suppliment/get_bom_list',method: 'post',data: params})
}

//用料清单覆盖补料单
export function changeSuppliment(params) {
	return request({ url: '/app/Suppliment/change_suppliment',method: 'post',data: params})
}

//保存补料单
export function saveSuppliment(params) {
	return request({ url: '/app/Suppliment/save_suppliment',method: 'post',data: params})
}

//删除分录
export function deleteDetail(params) {
	return request({ url: '/app/Suppliment/delete_detail',method: 'post',data: params})
}
